#include "mainwindow.h"
#include <QApplication>

int main(int argc, char *argv[])
{
    // 设置触摸屏环境变量
    qputenv("QT_QPA_PLATFORM", "linuxfb:fb=/dev/fb0");
    qputenv("QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS", "/dev/input/event2:rotate=90"); // 替换event2
    
    QApplication a(argc, argv);
    MainWindow w;
    w.show();
    return a.exec();
}
